package com.linkhouse.api;

import com.linkhouse.common.Result;
import com.linkhouse.po.ChatRecord;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//@FeignClient(value = "linkhouse-chatapp-service",fallback = ChatServiceFegnsFallback.class)//绑定服务
public interface ChatServiceFeigns {
    /*聊天记录添加*/
    @PostMapping("/chatRecord")//先找类/chatRecord/在找方法
    Result<ChatRecord> insert(@RequestBody ChatRecord chatRecord);
}
